package com.kd.juhaowan.http.api;

import androidx.annotation.NonNull;


import com.hjq.http.config.IRequestApi;
import com.kd.juhaowan.utils.XmlUtils;

public class RegistApi implements IRequestApi {

    @NonNull
    @Override
    public String getApi() {
        return "api/reg";
    }

    private String username;
    private String password;
    private String pattern;
    private String sms_type;
    private String code;
    private String channel_id;
    private String data_referral_code;

    /**
     *
     * @param username
     * @param password
     * @param pattern 账户注册：account，手机注册：mobile
     * @param sms_type sms_reg
     * @param code
     */
    public RegistApi(String username, String password, String pattern, String sms_type, String code) {
        this.username = username;
        this.password = password;
        this.pattern = pattern;
        this.sms_type = sms_type;
        this.code = code;
        this.channel_id = XmlUtils.getSdkChannelId();
        this.data_referral_code = XmlUtils.getSdkPromoteId();
    }


}
